﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="san_pham_category_level_1.ascx.cs" Inherits="Module_Product_san_pham_category_level_1" %>

<link rel="Stylesheet" href="/Css/Product.css" type="text/css"  />

<asp:ListView OnPagePropertiesChanging="pagerChanging" ItemPlaceholderID="item" ID="grdProduct" runat="server">
    <LayoutTemplate>
        <div class="product_list">
            <div id="item" runat="server"></div>
        </div>
         
    </LayoutTemplate>
    <ItemTemplate>
        <div class="product_item">
            <table runat="server" id="item" cellpadding="0" cellspacing="5" border="0">
                    <tr valign="top">
                        <td><div class="img_border"><img  src='<%# Eval("ProductImage") %>' alt='<%# Eval("ProductPageTitle") %>' /></div></td>
                        <td>
                            <a title='<%# Eval("ProductName") %>' href='/san-pham/thiet-ke-website/<%# Eval("ProductAlias") %>.aspx'><%# Eval("ProductName") %></a><br/>
                            <span class="product_abstract">
                                <%# Eval("MetaDescription") %><br/>
                                <b>Giá: <%# (Eval("CurrentPrice").ToString().Trim() != "0" ? Eval("CurrentPrice") + "triệu VNĐ" : "Tùy từng sản phẩm") + (Eval("DiscountPrice").ToString().Trim() != "0" ? (" - " + Eval("DiscountPrice") + "triệu VNĐ") : "")%></b>
                            </span>
                        </td>
                    </tr>
            </table>
        </div>
    </ItemTemplate>
</asp:ListView>
<div class="pager">
    <asp:DataPager EnableViewState="true" runat="server" ID="pgProduct" PagedControlID="grdProduct"  PageSize="3">
        <Fields>
            <asp:NumericPagerField NumericButtonCssClass="page_number" CurrentPageLabelCssClass="current_page_number" />
        </Fields>
    </asp:DataPager>
</div>



<asp:Repeater ID="grdProductDetails" runat="server">
    <HeaderTemplate>
        <div>
    </HeaderTemplate>
    <ItemTemplate>
        <table width="450px" cellpadding="0" cellspacing="0">
            <tr valign="top">
                <td>
                     
                        <%# General.SetStringStyle(Eval("ProductName").ToString(), 23) %>
                </td>
            </tr>
            <tr>
                <td>
                     <div id="mycustomscroll " class="flexcroll product_area">  
                                <%# Eval("ProductContent") %>
                    </div>  
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <FooterTemplate>
        </div>
    </FooterTemplate>
</asp:Repeater>